package com.kaifamiao.store.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kaifamiao.store.system.domain.Role;
import com.kaifamiao.store.system.mapper.RoleMapper;
import com.kaifamiao.store.system.service.RoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 10854
* @description 针对表【sys_role】的数据库操作Service实现
* @createDate 2023-12-11 10:59:23
*/
@Service
@Slf4j
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role>
    implements RoleService{

    @Override
    public List<Role> selectRolesByUserId(String userId) {
        return getBaseMapper().selectByUserId(userId);
    }
}




